﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EnqueteMobile.Repository.Database.Model
{
    [Table("TipoTelefone")]
    public class TipoTelefone
    {
        public TipoTelefone()
        {
            Telefones = new List<Telefone>();
        }

        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public long Id { get; set; }

        [MaxLength(200)]
        [Required]
        public String Nome { get; set; }
        
        [MaxLength(3000)]
        public String Comentarios { get; set; }
        
        [MaxLength(300)]
        public String CaminhoCompletoIcone { get; set; }

        [NotMapped]
        public List<Telefone> Telefones { get; set; }
    }
}